package com.loginlib.presenters;

import com.wanhe.base.net.ServerApi;
import com.wanhe.base.presents.BasePresenter;
import com.wanhe.base.runner.Runner;
import com.wanhe.base.websocket.WebSocketTool;
import com.wanhe.base.websocket.callback.OpenTableCallBack;

import javax.inject.Inject;

/**
 * Created by yanchx on 2017/7/11.
 */

public class OpenPresenter extends BasePresenter {
    @Inject
    public OpenPresenter(ServerApi api, Runner runner) {
        super(api, runner);
    }
    public void openTable(String guid, int num, OpenTableCallBack callBack){
        int tag =(int)System.currentTimeMillis();
        WebSocketTool.getInstance().openTable(tag,guid,num,callBack);
    }
}
